package com.weharvest.edu.enums;

import lombok.Getter;

/**
 * 微信枚举
 */
@Getter
public enum WechatExceptionEnum {
    SUCCESS(0,"成功"),
    ERROR(1,"失败"),

    OPEN_ENCODE_ERROR(2,"微信开放平台-编码异常"),
    OPEN_ACCESSTOKEN_ERROR(3,"微信开放平台-获取accessToken失败"),
    MP_OPENID_INVALID(4,"微信公众号-open无效"),
    MP_ACCESSTOKEN_ERROR(5,"微信公众号-获取accessToken失败"),
    MP_AUTHORIZE_INVALID(6,"微信公众号-授权无效");
    private  Integer code;
    private  String  msg;
    WechatExceptionEnum(Integer code, String msg) {
        this.msg = msg;
        this.code = code;
    }

}
